package com.example.itshome.util;


import android.content.Context;
import android.widget.Toast;

public class ToastUtil {
    private static Toast sToast = null;

    public static void showToast(String tips, Context context) {
        if (sToast == null) {
            sToast = Toast.makeText(context, tips, Toast.LENGTH_SHORT);
        } else {
            sToast.setText(tips);
        }
        sToast.show();
    }
}
